package com.springboot.controller;


import com.springboot.conf.JdbcProperties;
import com.springboot.pojo.User;
import com.springboot.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping("/hello")
    public User test(@RequestParam("number") Integer id) {

        return helloService.queryData(id);

    }

}
